
##字符串查找

from unittest import result


words1='与其临渊羡鱼，不如退而结网。'
result_one=words1.find('鱼')
print(result_one)
result_two=words1.find('鱼',6)
print(result_two)

##字符串替换
words2='十个勤天,做大做强'
new_words2=words2.replace("做大做强","缺一不可")
print(new_words2)

##字符串分割
words3="The more efforts you make, the more fortune you get. "
print(words3.split())
print(words3.split('m'))
print(words3.split('e',2))

##字符串拼接
words4="十个勤天"
words5="做大做强"
print(words4+words5)
